package com.atguigu.study.bootredis.consts;

import com.atguigu.study.bootredis.study.Pizza;

/**
 * @author jiangta
 * @version 1.0
 * @date 2020/12/14 10:19 上午
 */
public enum PizzaDeliveryStrategy {
    EXPRESS {
        @Override
        public void deliver(Pizza pz) {
            System.out.println("Pizza will be delivered in express mode");
        }
    },
    NORMAL {
        @Override
        public void deliver(Pizza pz) {
            System.out.println("Pizza will be delivered in normal mode");
        }
    };

    public abstract void deliver(Pizza pz);
}
